Ext.define('yiyuan.view.San', {
    extend: 'Ext.Panel',
    xtype: 'san',
    recordData:null,
    config: {
        recordData:null,
        layout:"vbox",
        scrollable:true,
        items: [
            {
                docked: 'top',
                xtype: 'toolbar',
                cls:'erjiView_toolbar',
                title:"",
                items:[
                    {
                        xtype:"button",
                        iconCls:"btn_home",
                        handler:function(){
                            Ext.Viewport.setActiveItem("main");
                        }
                    }
                ]
            },
            {
                xtype: "img",
                width:"100%",
                src:"",
                flex:1,
                listeners:{
                    tap:function(img){
                        if(img.getSrc().indexOf("jibingku")>=0){
                            var san = Ext.create("yiyuan.view.Siji");
                            san.down("toolbar").setTitle("常见疾病");
                            san.down("img").setSrc("resources/images/changjianjibing.png");
                            Ext.Viewport.setActiveItem(san);
                        }
                        if(img.getSrc().indexOf("doctor_list")>=0){
                            var san = Ext.create("yiyuan.view.Nonev");
                            san.down("toolbar").setTitle("医生列表");
                            Ext.Viewport.setActiveItem(san);
                        }
                        if(img.getSrc().indexOf("keshijieshao")>=0){
                            var san = Ext.create("yiyuan.view.Nonev");
                            san.down("toolbar").setTitle("科室名医一览");
                            Ext.Viewport.setActiveItem(san);
                        }

                    }
                }

            }
        ],
        listeners:{
            show:function(){
                setTimeout(function(){
                    Ext.Viewport.unmask();
                },200)
            }
        }
    }

});
